var gCName = 'module-banner';

function doAction(act, act_value, id)
{
	var strListId = '';
	strListId = (id==0) ? getListCheckedValue('chk') : id;
	if (strListId)
	{
		var isCookie = gFunction.readCookie(v_cookieShowConfirm);
		if ( !isCookie )
		{
			var msg = getMsg(act);
			if (msg)
			{
				showConfirm(msg, act, act_value, strListId, gCName);
			}
		}
		else
		{
			doActionOnForm(act, act_value, strListId, gCName);
		}
	}
}

function getMsg(act)
{
	var msg = '';
	if(act=='delete')
	{
		msg = gLang.module_banner['msg_delete'];
	}
	else if (act=='set_active')
	{
		msg = gLang.module_banner['msg_update_active'];
	}
	return msg;
}